package com.huidu.bitrade.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@ApiModel("修改用户余额")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class MemberWalletOperLog {
    @ApiModelProperty("id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty("钱包id")
    private Long walletId;

    @ApiModelProperty("用户id")
    private Long memberId;

    @ApiModelProperty("修改前余额")
    private BigDecimal beforeBalance;

    @ApiModelProperty("修改后余额")
    private BigDecimal balance;

    @ApiModelProperty("修改前冻结")
    private BigDecimal beforeFrozenBalance;

    @ApiModelProperty("冻结余额")
    private BigDecimal frozenBalance;

    @ApiModelProperty("修改前系统冻结")
    private BigDecimal beforeSystemBalance;

    @ApiModelProperty("修改后系统冻结")
    private BigDecimal systemBalance;

    @ApiModelProperty("操作码")
    private String operCode;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("操作ip")
    private String ip;

    @ApiModelProperty("操作账号")
    private Long createUser;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("操作时间")
    private Long createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("修改时间")
    private Long updateTime;

    @ApiModelProperty("操作账号")
    private Long updateUser;

    @ApiModelProperty("备注")
    private String remark;

}
